﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="category.ascx.cs" Inherits="Admin_Views_module_category" %>
<form action="" method="post" enctype="multipart/form-data" id="form" runat="Server">
<div class="warning" ID="warning" visible="false" runat="Server"><asp:label ID="warningText" runat="Server" /></div>
<div class="box">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url('view/image/category.png');">Danh Mục</h1>
    <div class="buttons">
        <asp:Button id="save" Text="Lưu" CssClass="button" runat="server" 
            onclick="save_Click" />
        <asp:Button id="cancel" Text="Hủy" CssClass="button" runat="server" 
            onclick="cancel_Click" />
    </div>
  </div>
  <div class="content">
    <div id="tabs" class="htabs"><a tab="#tab_general">Tổng quan</a><a tab="#tab_data">Dữ liệu</a></div>    
      <div id="tab_general">
          <table class="form">
            <tr>
              <td><span class="required">*</span> Tên Danh mục</td>
              <td><asp:textbox ID="category_name" size="100" runat="Server" /></td>
            </tr>
            <tr>
              <td>Mô tả</td>
              <td><asp:textbox ID="category_description" runat="Server" /></td>
            </tr>
          </table>
      </div>
      <div id="tab_data">
        <table class="form">
          <tr>
            <td>Danh mục gốc</td>
            <td><asp:DropDownList ID="parent_id" runat="Server" /></td>
          </tr>
          <tr>
            <td>Hình</td>
            <td valign="top"><asp:Image ID="category_image" Width="150" Height="150" runat="server" />
            &nbsp;<asp:FileUpload ID="fileUp" runat="server" />
            <br /></td>
          </tr>
		  <tr>
            <td>Trạng thái</td>
            <td>
                <asp:DropDownList ID="status" runat="Server" >
                <asp:ListItem Value="1">Bật</asp:ListItem>
                <asp:ListItem Value="0">Tắt</asp:ListItem>
                </asp:DropDownList>
            </td>
          </tr>
        </table>
      </div>
  </div>
</div>
</form>
<script type="text/javascript"><!--
    $.tabs('#tabs a');
    $.tabs('#languages a');
//--></script>
